﻿@model  P2PWeb.Models.Pager<P2PWeb.Models.Flight>
@using P2PWeb.Controllers;
@using P2PWeb.Common
@using P2PWeb;

<table cellpadding="0" cellspacing="0" width="100%">
    <tbody>
        <tr class="total_th">
            <th class="name">出借单号</th>
            <th>出借金额</th>
            <th>出借期限</th>
            <th>出借日期</th>
            <th></th>
        </tr>
        <tr class="">
            <th colspan="6">&nbsp;</th>
        </tr>
        @foreach (P2PWeb.Models.Flight flight in Model.Items)
        {
            <tr class="first_td">
                <td class="left_td"><a href="/Lenders/LendrsDetail?id=@flight.ID">@flight.ID</a>
                </td>
                <td>@flight.Amount.CustomFormatN()</td>
                <td>@((flight.Campaign.DueDate.GetValueOrDefault().MonthDifference() + "个月"))
                </td>
                <td>@flight.Campaign.StartDate.ToShortDateString()</td>
                <td class="red"></td>
            </tr>
        }


    </tbody>
</table>

<div id="navDiv" class="loan_page">
    <script>
        $(document).ready(function () {
            MakerNavs('mylends','index',@Model.CurrentPageIndex,@Model.TotialPaqgerCount,@Model.Items.Count,@Model.TotialItemsCount,'navDiv','borrowsContainer');
        });
    </script>
</div>
